import request from '@/utils/request'

// 查询短信验证码号码池列表
export function listPhoneCache(query) {
  return request({
    url: '/media/phoneCache/list',
    method: 'get',
    params: query
  })
}

// 查询短信验证码号码池详细
export function getPhoneCache(id) {
  return request({
    url: '/media/phoneCache/' + id,
    method: 'get'
  })
}

// 新增短信验证码号码池
export function addPhoneCache(data) {
  return request({
    url: '/media/phoneCache',
    method: 'post',
    data: data
  })
}

// 修改短信验证码号码池
export function updatePhoneCache(data) {
  return request({
    url: '/media/phoneCache',
    method: 'put',
    data: data
  })
}

// 删除短信验证码号码池
export function delPhoneCache(id) {
  return request({
    url: '/media/phoneCache/' + id,
    method: 'delete'
  })
}
